'use strict';

angular.module('myApp.teachers_class', [])

.controller('teachers_classCtrl',['$scope','$routeParams','$http', 
	
    function($scope,$routeParams,$http){
    	console.log($routeParams.id);
        $http.get('v1/teacher/'+ $routeParams.id+'/classes').success(function(data){
            $scope.teachers = data.result;
            $scope.teachid = $routeParams.id;
           console.log($scope.teachers);
        });
}]);
